package com.youlu.campus.entity.course.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : UserAllTopRecord
 * @description : [所有置顶类]
 * @createTime : [2023/1/11 15:27]
 */
@Data
@Document(collection = "user_all_top_record")
@CompoundIndexes({
        @CompoundIndex(name = "userId_1_uniqueId_1", def = "{'userId':-1,'uniqueId':-1}")
})
public class UserAllTopRecord extends EntityBase {
    private Integer priority = 0;
    private String uniqueId;
    private String userId;
    private Boolean onTop;
}
